import request from '@/utils/request'

// 查询客户预设值列表
export function listPreset(query) {
  return request({
    url: '/system/preset/list',
    method: 'get',
    params: query
  })
}

export function wanPreset(query) {
  return request({
    url: '/system/color/list',
    method: 'get',
    params: query
  })
}
// 查询客户预设值详细
export function getPreset(fPresetId) {
  return request({
    url: '/system/preset/' + fPresetId,
    method: 'get'
  })
}

// 新增客户预设值
export function addPreset(data) {
  return request({
    url: '/system/preset',
    method: 'post',
    data: data
  })
}

// 修改客户预设值
export function updatePreset(data) {
  return request({
    url: '/system/preset',
    method: 'put',
    data: data
  })
}

// 删除客户预设值
export function delPreset(fPresetId) {
  return request({
    url: '/system/preset/' + fPresetId,
    method: 'delete'
  })
}
